<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<sec:authentication property="principal" var="currentPrincipal" scope="page"/>

<fmt:setBundle basename="ApplicationMessage"/>
<fmt:setLocale value="zh_CN"/>

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp" %>
  <%@ include file="/WEB-INF/include/css.jsp" %>

</head>

<body class="ms-theme-blue">

	<%@ include file="/WEB-INF/include/header.jsp" %>
	<%@ include file="/WEB-INF/include/submenu.jsp" %>
	
	<div class="container-fluid ms-container has-ms-sidemenu">
	
	  <ol class="ms-breadcrumb breadcrumb">
	    <li class="active">司机信息管理</li>
	  </ol>
	
	  <div class="ms-content-layout">
	
	    <div class="row">
	
	      <div class="col-xs-9">
	        <div class="form-horizontal ms-form form-personal-info">
	
	          <div class="form-group ms-form-group">
	            <label class="control-label col-xs-3 ">所属公司：</label>
	            <div class="col-xs-3 pull-left">
	              <p class="form-control-static">${driver.supplier.name}</p>
	            </div>
	
	            <label class="control-label col-xs-2 ">审核状态：</label>
	            <div class="col-xs-4 pull-left">
	              <p class="form-control-static">${driver.status.description}</p>
	            </div>
	          </div>
	
	          <div class="form-group ms-form-group">
	            <label class="control-label col-xs-3 ">是否激活（FMS）：</label>
	            <div class="col-xs-3 pull-left">
	              <p class="form-control-static">${driver.active == true ? '是 ':'否'}</p>
	            </div>
	
	            <label class="control-label col-xs-2 ">是否激活（司机管家）：</label>
	            <div class="col-xs-4 pull-left">
	              <p class="form-control-static">${driver.appState == true ? '是':'否'}</p>
	            </div>
	          </div>
	          
	          <div class="form-group ms-form-group">
              <label class="control-label col-xs-3 ">是否在职：</label>
              <div class="col-xs-3 pull-left">
                <p class="form-control-static">${driver.disabled == true ? '否':'是'}</p>
              </div>
            </div>
	
	        </div>
	      </div>
	
	    </div>
	
	    <div class="block-heading">
	      <h5>司机基本信息</h5>
	    </div>
	
	    <div class="form-horizontal ms-form form-personal-info form-supplier-info">
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">1&nbsp;<span class="color-red">*</span>姓名：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.name}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">2&nbsp;<span class="color-red">*</span>性别：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.gender ? '':persist.masterData('SEX', driver.gender)}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">3&nbsp;<span class="color-red">*</span>身份证：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.citizenCode}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">4&nbsp;<span class="color-red">*</span>出生日期：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static"><fmt:formatDate value="${driver.birthday}" pattern="yyyy-MM-dd"/></p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">5&nbsp;<span class="color-red">*</span>手机号：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.mp}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">6&nbsp;<span class="color-red">*</span>工号：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.code}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">7&nbsp;<span class="color-red">*</span>所属驳运车：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.vehicleId ? '' : persist.vehicle(driver.vehicleId).code.concat(' - ').concat(persist.vehicle(driver.vehicleId).name)}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">8&nbsp;<span class="color-red">*</span>现任职务：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.dutyId ? '':persist.masterData('TRUCK_POSITION', driver.dutyId)}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">9&nbsp;<span class="color-red">*</span>劳务合同签署方：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">
	            <c:if test="${driver.contractParty eq '01'}">公司</c:if>
	            <c:if test="${driver.contractParty eq '02'}">中介</c:if>
	          </p>
	        </div>
	
	        <label class="control-label col-xs-2 ">10&nbsp;<span class="color-red">*</span>准驾车型：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">
	            <c:choose>
                <c:when test="${driver.drivingType eq '01'}">A1</c:when>
                <c:when test="${driver.drivingType eq '02'}">A2</c:when>
                <c:when test="${driver.drivingType eq '03'}">B2</c:when>
                <c:when test="${driver.drivingType eq '04'}">B1</c:when>
                <c:when test="${driver.drivingType eq '05'}">C1</c:when>
              </c:choose>
	          </p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">11&nbsp;<span class="color-red">*</span>驾龄：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.drivingAge}</p>
	        </div>
	      </div>
	
	    </div>

      <div class="block-heading">
        <h5>司机证件信息</h5>
      </div>

      <div class="form-horizontal ms-form form-personal-info form-supplier-info">
  
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3 ">12&nbsp;<span class="color-red">*</span>身份证正面：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.idFrontPhoto}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
            
          <label class="control-label col-xs-2 ">13&nbsp;<span class="color-red">*</span>身份证背面：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.idBackPhoto}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
        </div>
  
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3 ">14&nbsp;<span class="color-red">*</span>驾照原件：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.license}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
  
          <label class="control-label col-xs-2 ">15&nbsp;<span class="color-red">*</span>驾照副本扫描件：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.licenseBack}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
        </div>
  
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3 ">16&nbsp;第三方验证：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.thirdAuthentication}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
        
          <label class="control-label col-xs-2 ">17&nbsp;<span class="color-red">*</span>正面免冠照：</label>
          <div class="col-xs-3 pull-left upload-cover">
            <p class="form-control-static">
              <a data-imgsrc="${driver.avatar}" href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up">查看图片</a>
            </p>
          </div>
        </div>
  
      </div>

	    <div class="block-heading">
	      <h5>司机个人信息</h5>
	    </div>
	
	    <div class="form-horizontal ms-form form-personal-info form-supplier-info">
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">18&nbsp;文化程度：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.educationLevel ? '':persist.masterData('EDUCATION', driver.educationLevel)}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">19&nbsp;政治面貌：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.clanId ? '':persist.masterData('PARTY', driver.clanId)}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">20&nbsp;专业：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.speciality}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">21&nbsp;何时加入：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static"><fmt:formatDate value="${driver.joinDate}" pattern="yyyy-MM-dd"/></p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">22&nbsp;毕业学校：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.school}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">23&nbsp;学位：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${empty driver.degreeId ? '':persist.masterData('DEGREE', driver.degreeId)}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">24&nbsp;毕业年月：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static"><fmt:formatDate value="${driver.graduateDate}" pattern="yyyy-MM-dd"/></p>
	        </div>
	
	        <label class="control-label col-xs-2 ">25&nbsp;家庭地址：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.homeAddress}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">26&nbsp;家庭邮编：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.homeZipcode}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">27&nbsp;联系地址：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.contactAddress}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">28&nbsp;联系邮编：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.contactZipcode}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">29&nbsp;联系人姓名：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.contactorName}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">30&nbsp;称谓：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.contactorAppellation}</p>
	        </div>
	
	        <label class="control-label col-xs-2 ">31&nbsp;固定电话：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.tel}</p>
	        </div>
	      </div>
	
	      <div class="form-group ms-form-group">
	        <label class="control-label col-xs-3 ">32&nbsp;备注：</label>
	        <div class="col-xs-3 pull-left">
	          <p class="form-control-static">${driver.description}</p>
	        </div>
	      </div>
	
	    </div>

	
	  </div>
	</div>
	
	<%@ include file="/WEB-INF/include/script.jsp" %>

</body>
</html>